/*
 * @Author: 熔岩巨兽 2141826215@qq.com
 * @Date: 2024-08-26 23:14:35
 * @LastEditTime: 2024-09-02 21:46:23
 * @LastEditors: 熔岩巨兽 2141826215@qq.com
 * @FilePath: \vue-vite-project\src\router\index.ts
 * Copyright (c) 2024 by 熔岩巨兽 2141826215@qq.com, All Rights Reserved.
 */
/*
 * @Author: 熔岩巨兽 2141826215@qq.com
 * @Date: 2024-08-26 23:14:35
 * @LastEditTime: 2024-09-02 21:43:17
 * @LastEditors: 熔岩巨兽 2141826215@qq.com
 * @FilePath: \vue-vite-project\src\router\index.ts
 * Copyright (c) 2024 by 熔岩巨兽 2141826215@qq.com, All Rights Reserved.
 */
/*
 * @Author: 熔岩巨兽 2141826215@qq.com
 * @Date: 2024-08-26 23:14:35
 * @LastEditTime: 2024-09-02 20:34:36
 * @LastEditors: 熔岩巨兽 2141826215@qq.com
 * @FilePath: \vue-vite-project\src\router\index.ts
 * Copyright (c) 2024 by 熔岩巨兽 2141826215@qq.com, All Rights Reserved.
 */
import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/props",
    },
    {
      path: "/props",
      name: "props",
      component: () => import("@/views/CommunicationMode/PropsCom/props.vue"),
    },
    {
      path: "/customEvent",
      name: "customEvent",
      component: () =>
        import("@/views/CommunicationMode/customEvent/customEvent.vue"),
    },
    {
      path: "/EventBus",
      name: "eventBus",
      component: () =>
        import("@/views/CommunicationMode/eventBus/EventBus.vue"),
    },
    {
      path: "/vModel",
      name: "vModel",
      component: () => import("@/views/CommunicationMode/vModel/VieModel.vue"),
    },
    {
      path: "/UseAttrRefParent",
      name: "UseAttrRefParent",
      component: () =>
        import("@/views/CommunicationMode/UseAttrRefParent/index.vue"),
    },
    {
      path: "/ProVideInject",
      name: "ProVideInject",
      component: () =>
        import("@/views/CommunicationMode/ProVideInject/index.vue"),
    },
  ],
});

export default router;
